<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>用户注册表单</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f4f4f9;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
        }
        .form-container {
            background-color: #fff;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            width: 300px;
        }
        .form-container h2 {
            margin-bottom: 20px;
            text-align: center;
        }
        .form-group {
            margin-bottom: 15px;
        }
        .form-group label {
            display: block;
            margin-bottom: 5px;
        }
        .form-group input[type="text"],
        .form-group input[type="password"],
        .form-group input[type="file"],
        .form-group textarea,
        .form-group select {
            width: 100%;
            padding: 8px;
            box-sizing: border-box;
        }
        .form-group input[type="radio"],
        .form-group input[type="checkbox"] {
            margin-right: 5px;
        }
        .form-group button {
            width: 100%;
            padding: 10px;
            background-color: #007bff;
            color: #fff;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
        }
        .form-group button:hover {
            background-color: #0056b3;
        }
        .form-group a {
            display: block;
            text-align: center;
            margin-top: 10px;
            color: #007bff;
            text-decoration: none;
        }
        .form-group a:hover {
            text-decoration: underline;
        }
        table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 20px;
        }
        th, td {
            border: 1px solid red;
            padding: 10px;
            text-align: center;
        }
        th {
            background-color: #007bff;
            color: white;
        }
    </style>
</head>
<body>
    <div class="form-container">
        <h2>用户注册</h2>
        <form action="">
            <div class="form-group">
                <label for="username">用户名</label>
                <input type="text" id="username" name="username" required>
            </div>
            <div class="form-group">
                <label for="password">密码</label>
                <input type="password" id="password" name="password" required>
            </div>
            <div class="form-group">
                <label>性别</label>
                <input type="radio" name="sex" id="male" value="男">
                <label for="male">男</label>
                <input type="radio" name="sex" id="female" value="女">
                <label for="female">女</label>
                <input type="radio" name="sex" id="unknown" value="未知">
                <label for="unknown">未知</label>
            </div>
            <div class="form-group">
                <label>爱好</label>
                <input type="checkbox" name="hobby" id="basketball" value="篮球">
                <label for="basketball">篮球</label>
                <input type="checkbox" name="hobby" id="football" value="足球">
                <label for="football">足球</label>
                <input type="checkbox" name="hobby" id="pingpong" value="乒乓球">
                <label for="pingpong">乒乓球</label>
            </div>
            <div class="form-group">
                <label for="avatar">选择头像</label>
                <input type="file" id="avatar" name="avatar">
            </div>
            <div class="form-group">
                <label for="province">所在省份</label>
                <select id="province" name="province">
                    <option value="四川">四川</option>
                    <option value="北京">北京</option>
                    <option value="上海">上海</option>
                    <option value="广州">广州</option>
                    <option value="深圳">深圳</option>
                </select>
            </div>
            <div class="form-group">
                <label for="bio">个人简介</label>
                <textarea id="bio" name="bio" rows="6" cols="50"></textarea>
            </div>
            <div class="form-group">
                <button type="submit">提交</button>
            </div>
            <div class="form-group">
                <button type="reset">重置</button>
            </div>
            <div class="form-group">
                <a href="https://www.sptc.edu.cn/" target="_blank">新用户注册</a>
            </div>
        </form>
    </div>

    <table>
        <tr>
            <th>学号</th>
            <th>姓名</th>
            <th>性别</th>
            <th>年龄</th>
            <th>电话号码</th>
        </tr>
        <tr>
            <td>230320204018</td>
            <td>曾冬诚</td>
            <td>男</td>
            <td>20</td>
            <td>13811111111</td>
        </tr>
    </table>
</body>
</html>